#!/usr/bin/env bash

jboss-cli.sh <<EOF
connect
data-source add --name=DataDS --jndi-name=java:jboss/datasources/DataDS --driver-name=mysql --connection-url=jdbc:mysql://localhost:3306/data --user-name=dbuser --password=dbuser
data-source test-connection-in-pool --name=DataDS
EOF
